package ag.script.project.standard.core;

import ag.script.project.standard.ann.Ag;


public class ScreensDes {

    @Ag("原本配置文件就存在的值")
    private String name = "";

    @Ag("解析之后的描述")
    private String des = "";

    @Ag("屏幕宽度")
    private int w = 0;

    @Ag("屏幕高度")
    private int h = 0;

    @Ag("通配全部宽度")
    //如果参数是: x1920 那么就说明通配全部宽度
    private boolean allW = false;

    @Ag("通配全部高度")
    //如果参数是: 1080x 那么就说明通配全部高度
    private boolean allH = false;

    @Ag("是否支持通配，如果通配宽度或者高度中的一种，那么就设置为true")
    private boolean hasAll = false;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public int getW() {
        return w;
    }

    public void setW(int w) {
        this.w = w;
    }

    public int getH() {
        return h;
    }

    public void setH(int h) {
        this.h = h;
    }

    public boolean isAllW() {
        return allW;
    }

    public void setAllW(boolean allW) {
        this.allW = allW;
    }

    public boolean isAllH() {
        return allH;
    }

    public void setAllH(boolean allH) {
        this.allH = allH;
    }

    public boolean isHasAll() {
        return hasAll;
    }

    public void setHasAll(boolean hasAll) {
        this.hasAll = hasAll;
    }

    @Override
    public String toString() {
        return "ScreensDes{" +
                "name='" + name + '\'' +
                ", des='" + des + '\'' +
                ", w=" + w +
                ", h=" + h +
                ", allW=" + allW +
                ", allH=" + allH +
                ", hasAll=" + hasAll +
                '}';
    }
}
